<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Pname')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]" data-live-search="true">
                {foreach name="parentList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.pid"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="name" name="row[name]" value="{$row.name|htmlentities}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="info" class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="info" name="row[info]" value="{$row.info}" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('IsIndex')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[isindex]', ['1'=>__('IsIndex1'), '2'=>__('IsIndex2'),'3'=>__('IsIndex3'),'4'=>__('IsIndex4'),'0'=>__('Isindex0')],$row['isindex'])}
        </div>
    </div>
    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="title" name="row[title]" value="{$row.title}" />
        </div>
    </div>
    <div class="form-group">
        <label for="keywords" class="control-label col-xs-12 col-sm-2">{:__('Keywords')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="keywords" name="row[keywords]" value="{$row.keywords}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="description" name="row[description]" value="{$row.description}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="sort" class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="sort" name="row[sort]" autocomplete="off" value="{$row.sort}"/>
        </div>
    </div>
    <div class="form-group">
        <label for="pattem" class="control-label col-xs-12 col-sm-2">{:__('Pattem')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="pattem" name="row[pattem]" autocomplete="off" value="{$row.pattem}"/>
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>